# Maintainer:
pkgname=bcache-tools
pkgver=1.1
pkgrel=4
pkgdesc="tools for managing bcache"
url="https://bcache.evilpiepirate.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="eudev-dev util-linux-dev linux-headers coreutils"
subpackages="$pkgname-dbg $pkgname-doc"
source="https://git.kernel.org/pub/scm/linux/kernel/git/colyli/bcache-tools.git/snapshot/bcache-tools-$pkgver.tar.gz"
options="!check"

build() {
	make
}

package() {
	mkdir -p "$pkgdir"/usr/sbin
	mkdir -p "$pkgdir"/usr/share/man/man8
	mkdir -p "$pkgdir"/usr/lib/udev/rules.d

	make DESTDIR="$pkgdir" UDEVLIBDIR=/usr/lib/udev install
}

sha512sums="
4ccbef47255bf3644a50242a79951b1f3720e71a55eb1e07dc6b8486df0245da99a77bba751b50197d489b4c5d738e5284aabc014c2f7f44816ddf6a1bb807ca  bcache-tools-1.1.tar.gz
"
